package com.rwaste.kno.service.impl;

import com.rwaste.kno.entity.Popularization;
import com.rwaste.kno.entity.vo.AuditKnowVo;
import com.rwaste.kno.mapper.PopularizationMapper;
import com.rwaste.kno.service.PopularizationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author rzd
 * @since 2021-09-30
 */
@Service
public class PopularizationServiceImpl extends ServiceImpl<PopularizationMapper, Popularization> implements PopularizationService {

    @Override
    public AuditKnowVo getAuditById(String id) {
        AuditKnowVo auditKnowVo=baseMapper.getAuditKnowInfo(id);
        return auditKnowVo;
    }

    @Override
    public boolean updateKnowState(String id) {
        boolean flag=baseMapper.updateKnowState(id);
        return flag;
    }
}
